package com.slipper.common.util;

public class StockUtil {
    public static String getStockCode(String code) {
        if (StringUtil.isBlank(code)) return null;

        if (code.startsWith("00") || code.startsWith("300")) {
            return code + ".SZ";
        } else if (code.startsWith("60") || code.startsWith("688")) {
            return code + ".SH";
        }
        return null;
    }
}
